package utils
{
	import flash.events.Event;
	import flash.events.ProgressEvent;
	
	public class FilesLoaderEvent extends ProgressEvent
	{
		public static const PROGRESS:String = "progress";
		public var fileName:String;
		/**
		 *	加载完成的对象,可能是File或URLFile 
		 */
		public var targetFile:Object;
		
		/**
		 *	加载该对象花费的时间(ms) 
		 */
		public var useTime:int;
		public function FilesLoaderEvent(type:String, bubbles:Boolean=false, cancelable:Boolean=false, bytesLoaded:Number=0, bytesTotal:Number=0)
		{
			super(type, bubbles, cancelable, bytesLoaded, bytesTotal);
		}
		
		override public function clone():Event
		{
			var $e:FilesLoaderEvent = new FilesLoaderEvent(type,bubbles,cancelable,bytesLoaded,bytesLoaded);
			$e.fileName = fileName;
			$e.targetFile = targetFile;
			$e.useTime = useTime;
			return $e;
		}
	}
}